-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Split godoc into separate packages #311
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #311 +/- ##
=======================================
Coverage 94.82% 94.82%
=======================================
Files 46 46
Lines 8951 8951
=======================================
Hits 8488 8488
Misses 361 361
Partials 102 102 ☔ View full report in Codecov by Sentry. |
// // handle err | ||
// } | ||
// | ||
// [management client docs]: https://pkg.go.dev/github.com/auth0/go-auth0/management |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not super thrilled about having to link to pkg.go.dev directly but I'm not sure the doc links support linking like I want to here (i.e to the top level docs)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unfortunately not, we can't use HTML in the docs and the URL support only seems to support full URLs rather than relative.
🔧 Changes
This PR splits the godoc into the separate packages rather than having both the auth and management client documentation in the top level.
Some screenshots of the docs below
Auth0 package page
Authentication package page
Manangement package page
If you want to view this locally then you can install godoc (
go install golang.org/x/tools/cmd/godoc@latest
) and then rungodoc -http=:6060
in the repo. The documentation will be available onhttp://localhost:6060/pkg/github.com/auth0/go-auth0/
📚 References
Fixes #305 alongside the refactor
🔬 Testing
📝 Checklist